package com.xuhai.blog.common.form;

import com.xuhai.blog.admin.entity.UserEntity;
import lombok.Data;

/**
 * @Author PangJunjie
 * @Date 2022/2/9/009
 */
@Data
public class UserForm {
    private Integer userId;
    private String username;
    private String nickname;
    private String avatar;
    private Integer status;

    public UserEntity toEntity(){
        UserEntity user=new UserEntity();
        user.setUserId(userId);
        user.setAvatar(avatar);
        user.setNickname(nickname);
        user.setStatus(status);
        user.setUsername(username);
        return user;
    }
}
